80246338: 27 bd ff e0  ADDIU sp, sp, 0xffffffe0 (-32)
8024633c: af bf 00 1c  SW ra, sp, 0x1c (28)
80246340: af a4 00 20  SW a0, sp, 0x20 (32)             [sp + 0x20] === t
80246344: af a5 00 24  SW a1, sp, 0x24 (36)             [sp + 0x24] === id
80246348: af a6 00 28  SW a2, sp, 0x28 (40)             [sp + 0x28] === entry
8024634c: af a7 00 2c  SW a3, sp, 0x2c (44)             [sp + 0x2c] === arg
                                                        [sp + 0x30] === sp(C)
                                                        [sp + 0x34] === pri
80246350: 8f ae 00 20  LW t6, sp, 0x20 (32)
80246354: ad c0 00 00  SW r0, t6, 0x0 (0)                   t->next = NULL;

80246358: 8f af 00 20  LW t7, sp, 0x20 (32)
8024635c: ad e0 00 08  SW r0, t7, 0x8 (8)                   t->priority = 0;

80246360: 8f b8 00 30  LW t8, sp, 0x30 (48)
80246364: 8f b9 00 34  LW t9, sp, 0x34 (52)
80246368: 8f a4 00 20  LW a0, sp, 0x20 (32)
8024636c: 8f a5 00 24  LW a1, sp, 0x24 (36)
80246370: 8f a6 00 28  LW a2, sp, 0x28 (40)
80246374: 8f a7 00 2c  LW a3, sp, 0x2c (44)
80246378: af b8 00 10  SW t8, sp, 0x10 (16)
8024637c: 0c 0c 89 ac  JAL 0x803226b0 (-2144196944)         osCreateThread(t, id, entry, arg, sp, pri);
80246380: af b9 00 14  SW t9, sp, 0x14 (20)

80246384: 10 00 00 01  BEQ r0, r0, 0x8024638c (pc + 0x4)
80246388: 00 00 00 00  NOP
8024638c: 8f bf 00 1c  LW ra, sp, 0x1c (28)
80246390: 27 bd 00 20  ADDIU sp, sp, 0x20 (32)
80246394: 03 e0 00 08  JR ra

void sm64CreateThread(OSThread *t, OSId id, void(*entry)(void *), void *arg, void *sp, OSPri pri)
{
    t->next = NULL;
    t->priority = 0;
    osCreateThread(t, id, entry, arg, sp, pri);
}
